package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.AgentiaConsumablesCheckHistory;
import com.zhijian.medical.entity.vo.request.AgentiaConsumablesCheckHistorySaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.AgentiaConsumablesCheckHistorySearchVo;
import com.zhijian.medical.entity.vo.response.AgentiaConsumablesCheckHistoryVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 试剂-分子病理室耗材验收试验记录表 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-07-21 15:32:47
 */
public interface AgentiaConsumablesCheckHistoryService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    AgentiaConsumablesCheckHistory selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    AgentiaConsumablesCheckHistoryVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param agentiaConsumablesCheckHistory
     * @return
     */
    Long insert(AgentiaConsumablesCheckHistory agentiaConsumablesCheckHistory);

    /**
     * 保存
     *
     * @param agentiaConsumablesCheckHistorySaveOrUpdateVo
     * @return
     */
    boolean save(AgentiaConsumablesCheckHistorySaveOrUpdateVo agentiaConsumablesCheckHistorySaveOrUpdateVo);

    /**
     * 编辑
     *
     * @param agentiaConsumablesCheckHistorySaveOrUpdateVo
     * @return
     */
    boolean modify(AgentiaConsumablesCheckHistorySaveOrUpdateVo agentiaConsumablesCheckHistorySaveOrUpdateVo);

    /**
     * 更改
     *
     * @param agentiaConsumablesCheckHistory
     * @return
     */
    boolean update(AgentiaConsumablesCheckHistory agentiaConsumablesCheckHistory);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(AgentiaConsumablesCheckHistory record);

    /**
     * 总数
     *
     * @param agentiaConsumablesCheckHistorySearchVo
     * @return
     */
    Integer count(AgentiaConsumablesCheckHistorySearchVo agentiaConsumablesCheckHistorySearchVo);

    /**
     * 列表
     *
     * @param agentiaConsumablesCheckHistorySearchVo
     * @return
     */
    List<AgentiaConsumablesCheckHistoryVo> selectList(AgentiaConsumablesCheckHistorySearchVo agentiaConsumablesCheckHistorySearchVo);

    /**
     * 分页查询
     *
     * @param agentiaConsumablesCheckHistorySearchVo
     * @return
     */
    Page<AgentiaConsumablesCheckHistoryVo> selectPage(AgentiaConsumablesCheckHistorySearchVo agentiaConsumablesCheckHistorySearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<AgentiaConsumablesCheckHistory> entities);

    /**
     * 查询出最新数据的code
     *
     * @return
     */
    String selectMaxCode();

    /**
     * 生成下一个编码
     *
     * @return
     */
    String createNextCode();
}